
import { JsonUtil } from "db://app-game/core/utils/JsonUtil";

export class TableJoysitick {
    static TableName: string = "Joysitick";

    public data: any;

    init(id: number) {
        var table = JsonUtil.get(TableJoysitick.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 名称 */
    get name(): string {
        return this.data.name;
    }
    /** 摇杆底座 */
    get baseSvg(): string {
        return this.data.baseSvg;
    }
    /** 摇杆 */
    get stickSvg(): string {
        return this.data.stickSvg;
    }
    /** 预制件 */
    get prefabPath(): string {
        return this.data.prefabPath;
    }
}
    